package com.pacy.pacybaseproject.fragments;

import android.graphics.Color;
import android.os.Bundle;
import android.util.TypedValue;
import android.view.LayoutInflater;
import android.view.ViewGroup;
import android.widget.RadioGroup;

import androidx.fragment.app.Fragment;

import com.blankj.utilcode.util.FragmentUtils;
import com.flyco.tablayout.listener.CustomTabEntity;
import com.fondesa.recyclerviewdivider.DividerBuilder;
import com.pacy.pacybaseproject.BR;
import com.pacy.pacybaseproject.R;
import com.pacy.pacybaseproject.base.BaseXFragment;
import com.pacy.pacybaseproject.beans.TabBean;
import com.pacy.pacybaseproject.databinding.FragmentRewardBinding;
import com.pacy.pacybaseproject.viewmodels.RewardViewModel;
import com.xuexiang.xui.utils.ColorUtils;
import com.xuexiang.xui.utils.StatusBarUtils;
import com.xuexiang.xui.utils.ViewUtils;

import java.util.ArrayList;
import java.util.List;

import io.reactivex.annotations.Nullable;
import me.goldze.mvvmhabit.utils.ScreenUtil;

/**
 * @author PACY
 * @date 2023/12/20
 * description: 服务页面
 */
public class RewardFragment extends BaseXFragment<FragmentRewardBinding, RewardViewModel> {
    public static RewardFragment newInstance(String title) {

        Bundle args = new Bundle();
        args.putString("title", title);
        RewardFragment fragment = new RewardFragment();
        fragment.setArguments(args);
        return fragment;
    }

    @Override
    public int initContentView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        return R.layout.fragment_reward;
    }

    @Override
    public int initVariableId() {
        return BR.viewModel;
    }

    @Override
    public void initData() {
        super.initData();
        ViewUtils.setPaddingTop( binding.serMenuTopView, StatusBarUtils.getStatusBarHeight(getContext()));
//        if (binding.serMenuRv.getItemDecorationCount() == 0) {
//            new DividerBuilder(getContext())
//                    .size(1, TypedValue.COMPLEX_UNIT_DIP)
//                    .color(Color.parseColor("#F8F8F8"))
////                    .showFirstDivider()
////                    .showLastDivider()
//                    .build().addTo(binding.serMenuRv);
//        }
    }

}
